<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
</head>
<body>
<div class="box">
      		<h4 class="white">
      			<span class="align-left">RA정보평가</span>
	      		<span class="align-right">상태 :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[0].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
        <div class="box-container1">     		
        	<table class="table-long">
      			<tfoot>
      				<tr>
      					<td>
      						<div class="align-left subjectTitle"> ■ RA정보목록 
      						&nbsp;
      						<a href="#" class="button1 firstButton"><span style="font-size: small; font-weight:normal;">평가 완료 / 전체 : ${requestScope.pyungCount } / ${fn:length(list)}</span></a>
      						</div>
      						<!-- 검색 -->
      						<div class="align-left" style="margin-left: 30px">
	      						<span style="width: 22px; height: 22px; background: url('img/icon-view-info.gif') no-repeat scroll right center transparent;  overflow: hidden;display:inline-block;"></span>
	      						<span style="vertical-align: top"><input name="searchText" type="text" id="searchText" style="width:140px;" value="${param.searchText }" /></span>
	      						<span><a href="#" class="button rightNoMargin verticTop" onclick="searchText('mrainfop')"><span>조회</span></a></span>
      						</div>
      						
                        	<div class="align-right">
                        	<a href="riskIAction.do?mode=exmrainfop&searchText=${param.searchText }" class="button"><span>엑셀</span></a> 
                        	
                        	<c:choose>
	                        		<c:when test="${sessionScope.magamSession[0].state !='Y'}">
	                        		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                        			<a href="#" class="button lastButton" onclick="javascript: riskIDelete()"><span>삭제</span></a>
	                        		</c:when>
	                        		<c:otherwise>
	                        			<a href="#" class="button1 addMargin lastButton" onclick="return false" ><span>삭제</span></a>
	                        		</c:otherwise>
	                        	</c:choose>
                        	</div>
                        </td>
      				</tr>
      				<tr><td class="spaceLine"></td></tr>
      			</tfoot>
      		</table>
      		 <form name="riskIDelForm" action="riskIAction.do" method="post" >
	        	<input type="hidden" name="mode" value="mrainfop_delete"></input>
	        	<input type="hidden" name="pro_id" value="${sessionScope.lastProId }"></input>
      		<table class="table-long">
      			<colgroup>
				<!-- ie67인지 아닌지 판단 (위=ie)(아래는 그외)--> 
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="46px"/>
							<%--<col width="71px"/> --%>
							<col width="102px"/>
							<col width="88px"/>
							<col width="92px"/>
							<col width="92px"/>
							<col width="26px"/>
							<col width="30px"/>
							<col width="30px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="45px"/>
							<%--<col width="80px"/> --%>
							<col width="111px"/>
							<col width="100px"/>
							<col width="100px"/>
							<col width="100px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col/>
							<col width="15px"/>
						</c-rt:otherwise>
					</c-rt:choose>				
				</colgroup>
      			<thead>
      				<tr>
      					<td class="col-chk" rowspan="2"><input type='checkbox' name='checkAll' onclick="javascript: selectAll()" class="chkCursor"></input></td>
      					<%--<td class="col-rowspanMid" style="padding-left: 0px" rowspan="2">정보코드</td> --%>
      					<td class="col-rowspanMid" style="padding-left: 0px" rowspan="2">정보명칭</td>
      					<td colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      					RA정보보안요구사항</td>
      					<td colspan="6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      					RA정보가치평가</td>
      					<td></td>
      				</tr>
      				<tr>
      					<td>기밀성</td>
      					<td>무결성</td>
      					<td>가용성</td>
      					<td>C</td>
      					<td>I</td>
      					<td>A</td>
      					<td>보안점수</td>
      					<td>보안등급</td>
      					<td>기밀등급</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<div class="scrollDIV" style="height: 460px;">
      		<table class="table-long">
      			<colgroup>
				<c-rt:choose>
					<c-rt:when test="${isMSIE67}">
							<col width="46px"/>
							<col width="98px"/>
							<col width="88px"/>
							<col width="88px"/>
							<col width="88px"/>
							<col width="26px"/>
							<col width="26px"/>
							<col width="26px"/>
							<col width="51px"/>
							<col width="51px"/>
							<col/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="45px"/>
							<col width="111px"/>
							<col width="100px"/>
							<col width="100px"/>
							<col width="100px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col/>
							<col width="15px"/>
					</c-rt:otherwise>
				</c-rt:choose>
			</colgroup>
      			<tbody>
      				<c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                       	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
                   			<%--
                   			<tr onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');" class="odd">
                   			 --%>
                   			 <tr <c:if test="${status.index%2==0 }">class="odd"</c:if> onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');">
                    			<td class="col-chk"><input type="checkbox" name="check" id="check${status.index+1 }" value='${list.rainfo_id}' class="chkCursor"></input></td>
                    			<%--
                    			<td>
                   				<!-- ie6에서 한글 깨짐 방지를 위한 전달 방법 -->
	                    			<c:url var="url" value="riskIAction.do">
	                    				<c:param name="mode" value="mrainfop_updatePage"/>
									    <c:param name="rainfo_id" value="${list.rainfo_id }"/>
									</c:url>
	                    				<div class="ellipsis"  style="width:100%;">
	                    				<a href="<c:out value="${url}"/>" class="nor ellipsis" title='${list.rainfo_id }'>${list.rainfo_id }</a>
	                    				</div>
                    			</td>
                    			 --%>
                    			<td>
                    			<!-- ie6에서 한글 깨짐 방지를 위한 전달 방법 -->
	                    			<c:url var="url" value="riskIAction.do">
	                    				<c:param name="mode" value="mrainfop_updatePage"/>
									    <c:param name="rainfo_id" value="${list.rainfo_id }"/>
									</c:url>
	                    				<div class="ellipsis"  style="width:100%;">
	                    				<a href="<c:out value="${url}"/>" class="nor ellipsis" title='${list.rainfo_nm }'>${list.rainfo_nm }</a>
	                    				</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.c_memo }">${list.c_memo }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.i_memo }">${list.i_memo }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.a_memo }">${list.a_memo }</div>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.c_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.i_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.a_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					&nbsp;&nbsp;&nbsp;&nbsp;<fmt:formatNumber value="${list.t_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;">${list.ascu_level }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;">${list.asc_level }</div>
                    			</td>
	   					 	<td></td>
                    		</tr>
                    	</c:forEach>
                    	</c:when>
                    	<c:otherwise>
                    		<tr class="odd">
								<td colspan="13" class="noDataTD">-데이터가 없습니다-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
      			</tbody>
      		</table>  	
      		</div>
      		</form>
      	</div><!-- end of div.box-container1 -->
      	</div> <!-- end of div.box -->
</body>
</html>